<div id = "letters_list">
<table width="100%" height="15px" cellpadding="1" border="1" align="center" style="position: relative;">
  <tr>
    <td align="left" width="15%">
      <% form_remote_tag(:html => {:id => "letters_list_form"}, :url => {:action => :switch_drugs_categories_list}, :update => "letters_list", :complete => "new Effect.Highlight('letters_list', {startcolor: '#00ff00', endcolor: '#ffffff'})") do %>
        <%= select_tag(:is_drug, options_for_select({"Treatement Categories" => "categories", "Drug Names" => "drugs"}, @is_drug ? "drugs" : "categories"), {:onchange => " $('letters_list_form').onsubmit()"}) %>
      <% end %>
    </td>
    <% ("A".."Z").each do |letter| -%>
      <td align="center">
        <% if @initial == letter %>
          <%= letter %>
        <% else %>
          <%= link_to(letter, {:action => @is_drug ? "list_drugs" : "list_categories", :id => letter}) %>
        <% end %>  
      </td>
    <% end %>
  </tr>
</table>
</div>
